![]() |
Kinetis SDK API Reference Manual
1.0.0-beta
Freescale Semiconductor, Inc.
|
The section describes the programming interface of the SDCH Peripheral driver. More...
SDHC PD FUNCTION | |
| sdhc_status_t | sdhc_init (uint8_t instance, sdhc_host_t *host, const sdhc_user_config_t *config) |
| Initializes the Host controller by a specific instance index. More... | |
| void | sdhc_shutdown (sdhc_host_t *host) |
| Destroy host controller. More... | |
| sdhc_status_t | sdhc_check_card (sdhc_host_t *host, sdhc_card_t *card) |
| check whether the card is present on specified host controller. More... | |
| sdhc_status_t | sdhc_check_ro (sdhc_host_t *host) |
| Checks the read only for the attached card. More... | |
| sdhc_status_t | sdhc_config_host (sdhc_host_t *host, sdhc_host_config_t *config) |
| Configures the specified host controller. More... | |
| sdhc_status_t | sdhc_issue_request (sdhc_host_t *host, sdhc_request_t *req) |
| Issues the request on a specific Host controller and returns on completion. More... | |
| sdhc_status_t sdhc_init | ( | uint8_t | instance, |
| sdhc_host_t * | host, | ||
| const sdhc_user_config_t * | config | ||
| ) |
This function initializes the SDHC module according to the given initialization configuration structure including the clock frequency, bus width, and card detect callback.
| instance | the specific instance index |
| host | the memory address allocated for the host handle |
| config | initialization configuration data |
| void sdhc_shutdown | ( | sdhc_host_t * | host | ) |
| host | the pointer to the host controller about to be destroyed |
| sdhc_status_t sdhc_check_card | ( | sdhc_host_t * | host, |
| sdhc_card_t * | card | ||
| ) |
This function checks if there's a card inserted to the SDHC.
| host | the pointer to the host controller |
| card | the pointer to retrieve card information |
| sdhc_status_t sdhc_check_ro | ( | sdhc_host_t * | host | ) |
| host | the pointer to the host controller |
| sdhc_status_t sdhc_config_host | ( | sdhc_host_t * | host, |
| sdhc_host_config_t * | config | ||
| ) |
With this function, a user can modify the specific SDHC configuration.
| host | the pointer to the host controller |
| config | the pointer to the configuration information |
| sdhc_status_t sdhc_issue_request | ( | sdhc_host_t * | host, |
| sdhc_request_t * | req | ||
| ) |
This function issues the request to the card on a specific SDHC. The command is sent and is blocked as long as the response/data is sending back from the card.
| host | the pointer to the host controller |
| req | the pointer to the request |